import NumberThree.Student;

import java.util.HashMap;
import java.util.HashSet;

public class NumberFive {
    public static void main(String[] args) {
        HashMap<String, HashSet<Student>> hashMap=new HashMap<>();
        HashSet<Student> hashSet=new HashSet<>();
        hashSet.add(new Student("1","牛马",80));
        hashSet.add(new Student("2","牛马",80));
        hashSet.add(new Student("3","牛马",80));
        hashSet.add(new Student("4","牛马",80));

        HashSet<Student> hashSet1=new HashSet<>();
        hashSet1.add(new Student("1","牛马",80));
        hashSet1.add(new Student("2","牛马",80));
        hashSet1.add(new Student("3","牛马",80));
        hashSet1.add(new Student("4","牛马",80));

        HashSet<Student> hashSet2=new HashSet<>();
        hashSet2.add(new Student("1","牛马",80));
        hashSet2.add(new Student("2","牛马",80));
        hashSet2.add(new Student("3","牛马",80));
        hashSet2.add(new Student("4","牛马",80));

        hashMap.put("动物一班",hashSet);
        hashMap.put("动物二班",hashSet1);
        hashMap.put("动物三班",hashSet2);

        hashMap.forEach((k,v)-> System.out.println(k+"="+v));

    }
}
